<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<Myotragus.Store.Model.Domain.IProduct>" MasterPageFile="~/Views/Shared/Site.Master" %>
<%@ Import Namespace="Myotragus.Store.Models" %>
<asp:Content runat="server" ID="Title" ContentPlaceHolderID="TitleContent"></asp:Content>
<asp:Content runat="server" ID="Main" ContentPlaceHolderID="MainContent">
  
  <% Html.RenderPartial("CultureUserControl",
       new CultureSelection { Controller = "Product", Action = "Edit" }); %>
    <h2>Edit</h2>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Name) %>
                <%= Html.ValidationMessageFor(model => model.Name) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Name) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Description) %>
                <%= Html.ValidationMessageFor(model => model.Description) %>
            </div>
            <div class="editor-field">
                <%= Html.TextAreaFor(model => model.Description) %>
            </div>
            
            <%= Html.Hidden("Culture", ViewData["Culture"]) %>
            <%= Html.HiddenFor(model => model.Id) %>
            
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>
</asp:Content>
